import React from 'react';
import ReactDOM from 'react-dom';
import TodoList from './TodoList';
import {Provider} from 'react-redux'
import store from './store'

const App = (
  <Provider store={store}>
    <TodoList nihao='nihao' />
  </Provider>
)

const changeList = (list) => {
  fetch('',list).then(res => ({
    type: 'CHANGE_LIST',
    res
  }))
}

ReactDOM.render(App, document.getElementById('root'));
